<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>samba</Name>
        <Homepage>http://www.samba.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>service</IsA>
        <Summary>A suite of SMB and CIFS client/server programs for UNIX</Summary>
        <Description>samba is a free software implementation of Microsoft's networking protocol released under the GNU General Public License. As of version 4, Samba not only provides file and print services for various Microsoft Windows clients but can also integrate with a Windows Server domain, either as a Primary Domain Controller (PDC) or as a Domain Member. It can also be part of an Active Directory domain.</Description>
        <Archive sha1sum="cff0168e67ef797c0d71c13b6b1208d2ecdc4e6b" type="targz">http://us1.samba.org/samba/ftp/stable/samba-4.5.5.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>keyutils</Dependency>
            <Dependency>acl-devel</Dependency>
            <Dependency>pam-devel</Dependency>
            <Dependency>attr-devel</Dependency>
            <Dependency>popt-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libcap-devel</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>ncurses-devel</Dependency>
            <Dependency>readline-devel</Dependency>
            <Dependency>e2fsprogs-devel</Dependency>
            <Dependency>libgcrypt-devel</Dependency>
            <Dependency>libbsd-devel</Dependency>
            <Dependency>avahi-libs</Dependency>
            <!--Dependency>ctdb-devel</Dependency-->
            <Dependency>cups-devel</Dependency>
            <Dependency>avahi-devel</Dependency>
            <Dependency>dmapi-devel</Dependency>
            <!--Dependency>gamin-devel</Dependency-->
            <Dependency>gnutls-devel</Dependency>
            <Dependency>libaio-devel</Dependency>
            <!--Dependency>libldb-devel</Dependency-->
            <Dependency>mit-kerberos</Dependency>
            <Dependency>iniparser-devel</Dependency>
            <Dependency>libtalloc-devel</Dependency>
            <Dependency>libtevent-devel</Dependency>
            <Dependency>openldap-client</Dependency>
            <Dependency>libarchive-devel</Dependency>
            <Dependency>nss-devel</Dependency>
            <Dependency>docbook-xsl</Dependency>
            <Dependency>libxslt</Dependency>
            <Dependency versionFrom="1.2.12">libtdb-devel</Dependency>
            <Dependency versionFrom="2.1.26">cyrus-sasl-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>samba</Name>
        <RuntimeDependencies>
            <Dependency>acl</Dependency>
            <Dependency>pam</Dependency>
            <Dependency>attr</Dependency>
            <Dependency>popt</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>libcap</Dependency>
            <Dependency>python</Dependency>
            <Dependency>ncurses</Dependency>
            <Dependency>readline</Dependency>
            <Dependency>e2fsprogs</Dependency>
            <Dependency>libgcrypt</Dependency>
            <Dependency>libarchive</Dependency>
            <Dependency>cups</Dependency>
            <Dependency>avahi</Dependency>
            <Dependency>gdb</Dependency>
            <!--Dependency>dmapi</Dependency>
            <Dependency>gamin</Dependency-->
            <Dependency>gnutls</Dependency>
            <Dependency>libbsd</Dependency>
            <Dependency>libaio</Dependency>
            <!--Dependency>libldb</Dependency-->
            <Dependency>keyutils</Dependency>
            <Dependency>iniparser</Dependency>
            <Dependency>libtalloc</Dependency>
            <Dependency>libtevent</Dependency>
            <Dependency>avahi-libs</Dependency>
            <Dependency>openldap-client</Dependency>
            <Dependency versionFrom="2.1.26">cyrus-sasl</Dependency>
            <Dependency versionFrom="1.2.12">libtdb</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="data">/run</Path>
            <Path fileType="config">/etc</Path>
            <Path fileType="data">/var/lib</Path>
            <Path fileType="data">/var/log</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/sbin</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="library">/lib/security</Path>
            <Path fileType="data">/usr/share/samba</Path>
            <Path fileType="data">/usr/share/perl5</Path>
            <Path fileType="data">/usr/libexec/samba/</Path>
            <Path fileType="data">/usr/libexec/ctdb/</Path>
            <Path fileType="data">/var/cache/samba</Path>
	        <Path fileType="data">/var/run/ctdb</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="config">/usr/lib/tmpfiles.d/samba.conf</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/samba/lmhosts">lmhosts</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/pam.d/samba">samba.pam</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/samba/smbusers">smbusers</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/samba/smb.conf">smb.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/conf.d/samba">samba.confd</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/samba.conf">tmpfiles.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/samba/system-auth-winbind">system-auth-winbind</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="package.py">System.Package</COMAR>
            <COMAR script="service.py">System.Service</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>samba-devel</Name>
        <Summary>Development files for samba</Summary>
        <RuntimeDependencies>
            <!--Dependency>libldb-devel</Dependency-->
            <Dependency>libtalloc-devel</Dependency>
            <Dependency>libtevent-devel</Dependency>
            <Dependency release="current">samba</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-02-28</Date>
            <Version>4.5.5</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2016-07-24</Date>
            <Version>4.4.5</Version>
            <Comment>Version Bump fix service.py</Comment>
            <Name>Ergün Salman</Name>
            <Email>poyraz76@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-15</Date>
            <Version>4.2.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-07-30</Date>
            <Version>4.2.3</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>
